package com.springboot.rookie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.rookie.mapper.SysUserMapper;
import com.springboot.rookie.pojo.SysUserBean;
import com.springboot.rookie.service.SysUserService;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUserBean> implements SysUserService {

    @Override
    public SysUserBean getUserByName(String userName) {
        return baseMapper.getUserByName(userName);
    }

    @Override
    public void saveUser(SysUserBean info) {
        baseMapper.saveUser(info);
    }

    @Override
    public void insertUser(SysUserBean info) {
        baseMapper.insertUser(info);
    }
}
